package com.lngsyz.file.entity;

public class ServiceCommonResult<T> {

	/*返回代码：1-成功；0-失败；*/
	private int code = 0;
	/*返回信息*/
	private String info = "请求成功";
	/*返回详情      +  异常信息*/
	private String msg;
	/*返回数据*/
	private T data;
	/*数据总数*/
	private long total = 0;
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public String getInfo() {
		return info;
	}
	public void setInfo(String info) {
		this.info = info;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public T getData() {
		return data;
	}
	public void setData(T data) {
		this.data = data;
	}
	public long getTotal() {
		return total;
	}
	public void setTotal(long total) {
		this.total = total;
	}
}
